package com.hndfsj.common.dao.ibatis;

import org.springframework.stereotype.Repository;

import com.hndfsj.common.dao.IByteResourcesDao;
import com.hndfsj.common.domain.ByteResources;
import com.hndfsj.framework.dao.base.BaseDaoImpl;
import com.hndfsj.framework.pager.PageRequest;

/**
 * TODO 
 * @copyright {@link www.hndfsj.com}
 * @author ZhengXingJian<Auto generate>
 * @version  2016-11-09 11:44:36
 * @see com.hndfsj.common.dao.ByteResources
 */
@Repository("byteResourcesDao")
public class ByteResourcesDaoImpl extends BaseDaoImpl<ByteResources, java.lang.String>implements IByteResourcesDao {

	//concstructor

	public ByteResourcesDaoImpl(){
		super(ByteResources.class);
	}

	@Override
	public void delete(PageRequest pageRequest) {
		if(!pageRequest.getAndConditions().isEmpty()||!pageRequest.getOrConditions().isEmpty()){
			delete("delete", pageRequest);
		}
	}

}
